/**
 * Looker  新闻整合系统
 * Author  :solosky <solosky772@qq.com>
 * File    :Data.js
 * Date    :August 5, 2009
 * License : Apache License 2.0 
 */

/**
 *  全局配置
 */
 
 var Config = {
	
		//服务器配置
		Path : {
			Index : "http://looker.test.net/",
			Widget : "widgets/"
		},
		
		
		Data:{
			ProxyURL : "proxy.php" ,
			RequestID : 0
		},
		URL : {
			//获取默认widget配置的地址
			DefaultTabSettings : "server/defaultTab.php?tab={tabID}",
			WidgetInfo : "server/widgetInfo.php?names={names}",
			NewsList : "server/newsList.php?category={category}&total={total}&page={page}&limit={limit}",
			Media : "server/media.php?media={media}&size={size}",
			NewsDetail : "server/newsDetail.php?newshash={newshash}",
			Dig : "server/dig.php?newshash={newshash}"
			
		},
		/////////////////////////////
		Widget : {
			
			//widget的默认配置
			defaults : {
					behaviour : {
					  dragDelay : 100,
					  dragRevert : 100,
					  dragOpacity : 0.8,
					  useCookies : false
					},
				
					effects : {
					  effectDuration : 500,
					  widgetShow : 'slide',
					  widgetHide : 'slide',
					  widgetClose : 'none',
					  widgetExtend : 'slide',
					  widgetCollapse : 'slide',
					  widgetOpenEdit : 'slide',
					  widgetCloseEdit : 'none',
					  widgetCancelEdit : 'slide'
					},
					cookies : {
					  path : '',
					  domain : 'looker.test.net',
					  expires : 90,
					  secure : false,
					  closeName : 'ew-close',
					  disableName : 'ew-disable',
					  positionName : 'ew-position',
					  collapseName : 'ew-collapse'
					},
					options : {
					  movable : 'movable',
					  editable : 'editable',
					  collapse : 'collapse',
					  removable : 'removable',
					  collapsable : 'collapsable',
					  closeConfirm : 'closeconfirm'
					},
					selectors : {
					  container : 'div',
					  widget : '.widget',
					  places : '.widget-place',
					  header : '.widget-header',
					  widgetMenu : '.widget-menu',
					  editbox : '.widget-editbox',
					  content : '.widget-content',
					  closeEdit : '.widget-close-editbox',
					  editLink : '.widget-editlink',
					  closeLink : '.widget-closelink',
					  placeHolder : 'widget-placeholder',
					  collapseLink : '.widget-collapselink'
					},
					i18n : {
					  editText : ' ',
					  closeText : ' ',
					  extendText : ' ',
					  collapseText : ' ',
					  cancelEditText : ' ',
					  editTitle : '编辑这个小工具',
					  closeTitle : '关闭这个小工具',
					  confirmMsg : '关闭这个小工具?',
					  cancelEditTitle : '取消编辑',
					  extendTitle : '展开这个小工具',
					  collapseTitle : '折叠这个小工具'
					}
				  }
		},
	//////////////////////////////////////////////////////////////////////
	Tab : {
		Tabs : [
					   {title:"首页",id:"index"},
					   {title:"学校首页",id:"head"}
					   ],
		IndexTab :"index"
	},
	///////////////////////////////////////////////////////////////////
	Cookie : {
      path : '',
      domain : 'looker.test.net',
      expires : 90,
      secure : false,
	  prex : "LOOKER_"
	},
	//////////////////////////////////////////////////////////////////////
	News : {
		
		//Categorys:{"18422":{"sitehash":"18422","url":"http:\/\/localhost\/sl\/sl\/","title":"\u672c\u5730\u6d4b\u8bd5","orders":"0","categorys":[{"categoryhash":"26058","sitehash":"18422","url":"http:\/\/localhost\/sl\/sl\/index.php\/Article\/category\/cid\/1","title":"\u8981\u95ee","orders":"0"},{"categoryhash":"60692","sitehash":"18422","url":"http:\/\/localhost\/sl\/sl\/index.php\/Article\/category\/cid\/2","title":"\u793e\u56e2\u5929\u5730","orders":"0"},{"categoryhash":"54078","sitehash":"18422","url":"http:\/\/localhost\/sl\/sl\/index.php\/Article\/category\/cid\/3","title":"\u793e\u8054\u4e4b\u98ce","orders":"0"}]},"34251":{"sitehash":"34251","url":"http:\/\/www1.cdut.edu.cn\/cdut\/","title":"\u6210\u90fd\u7406\u5de5\u5927\u5b66\u9996\u9875","orders":"0","categorys":[{"categoryhash":"27295","sitehash":"34251","url":"http:\/\/www1.cdut.edu.cn\/cdut\/index.jsp?focusModuleId=f10856463402940000000000000000","title":"\u7406\u5de5\u52a8\u6001","orders":"0"},{"categoryhash":"54430","sitehash":"34251","url":"http:\/\/www1.cdut.edu.cn\/cdut\/index.jsp?focusModuleId=f10856463170410000000000000000","title":"\u5168\u6821\u901a\u77e5","orders":"0"},{"categoryhash":"58632","sitehash":"34251","url":"http:\/\/www1.cdut.edu.cn\/cdut\/index.jsp?focusModuleId=f12108109712550000000000000000","title":"\u6297\u9707\u6551\u707e","orders":"0"}]}},
		//Categorys :{"18422":{"sitehash":"18422","url":"http:\/\/localhost\/sl\/sl\/","title":"\u672c\u5730\u6d4b\u8bd5","orders":"0","categorys":[{"categoryhash":"49932","sitehash":"18422","url":"http:\/\/localhost\/sl\/sl\/index.php\/Article\/category\/cid\/1\/p\/1","title":"\u8981\u95ee","orders":"0"}]}},
		Categorys:{"63385":{"sitehash":"63385","url":"http:\/\/www.cdut.edu.cn\/","title":"\u7406\u5de5\u65b0\u95fb\u7f51","orders":"0","categorys":[{"categoryhash":"60228","sitehash":"63385","url":"http:\/\/www.cdut.edu.cn\/c2.aspx","title":"\u7406\u5de5\u5feb\u8baf","orders":"0"},{"categoryhash":"44978","sitehash":"63385","url":"http:\/\/www.cdut.edu.cn\/c3.aspx","title":"\u901a\u77e5\u516c\u544a","orders":"0"},{"categoryhash":"54251","sitehash":"63385","url":"http:\/\/www.cdut.edu.cn\/c6.aspx","title":"\u6559\u5b66\u79d1\u7814","orders":"0"},{"categoryhash":"22847","sitehash":"63385","url":"http:\/\/www.cdut.edu.cn\/c13.aspx","title":"\u5b66\u9662\u52a8\u6001","orders":"0"}]}},
        MediaPattern :"\[__MEDIA\|(.*?)\]"
	}
	 
 };
  